Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

241
Visualizações
Is it possible to re-open a file that was selected via the "input file" button programatically

In my web app the user selects a large zip file via an "input file" button.
The file is then returned as a blob (see the snapshot zipfile1).
The program then reads chunks (individual files) of the zip file one after the other.
A test program reads through all the files in a sequence, and then repeats the sequence multiple times.
This works ok on various OSs (Windows Linux, MacOs, Android) via various browsers (Chrome, Firefox, Safari).
But on iOS sometimes the blob object is lost, and the process returns an error.
In such case I can select the file again to continue the process.

But I would like to do this programatically, without the need for manual intervention.
I still have the filename, but the blob size is 0 (see the snapshot zipfile2).

Is it possible to re-open the file programatically?
Thanks


EDIT:

I tried to call

let zipFileUrl = URL.createObjectURL(zipFile);

to have some kind of a "handle" to the file in memory without the actual data.
The idea was that later on, if the file object gets corrupt, I can fetch(zipFileUrl) to reopen the file.
Unfortunately, createObjectURL creates a memory blob from the entire file in memory, which is useless to me because the file is too big...


zipFile1 zipfile1

zipfile2 zipFile2

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda